package com.taotao.portal.web;

import com.taotao.portal.service.TbContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

    @Autowired
    private TbContentService tbContentService;

    /**
     * 查询前端页面轮播图
     * @param model
     * @return
     */
    @RequestMapping(path = {"/","/index"})
    public String showIndex(Model model){
        String content = tbContentService.getIndexBigAds();
        model.addAttribute("ad1",content);
        return "index";
    }
}
